* {
	margin: 0;
	padding: 0;
	list-style: none;
}

html,
body {
	height: 100%;
	width: 100%;
	position: relative;
}

@font-face {
	font-family: 'flintstone';
	src: url(myfont/flintstone.eot);
	/* IE9 Compat Modes */
	src: url(myfont/flintstone.eot?#iefix) format('embedded-opentype'),
		/* IE6-IE8 */
		url(myfont/flintstone.woff) format('woff'),
		/* Modern Browsers */
		url(myfont/flintstone.ttf) format('truetype'),
		/* Safari, Android, iOS */
		url(myfont/flintstone.svg#MicrosoftYaHei) format('svg');
	/* Legacy iOS */
}

#game {
	height: 568px;
	width: 320px;
	overflow: hidden;
	position: relative;
	margin: 0 auto;
	top: 50%;
	transform: translateY(-50%);
}

.container {
	height: 100%;
	width: 100%;
	position: absolute;
}

.page1,
.page2,
.page3,
.page4 {
	display: none;
}

.container.current {
	display: block;
}

#main-menu li,
#sub-menu li {
	height: 30px;
	width: 180px;
	border-radius: 30px;
	margin-top: 15px;
	border: 2px solid #555555;
	text-align: center;
	line-height: 30px;
	font-weight: bold;
	font-size: 18px;
	color: #555555;
	letter-spacing: 2px;
}

.page1 {
	background: url(../img/startbg.png);
	background-size: 100%;
}

.page1 #main-menu {
	height: 200px;
	width: 180px;
	margin: 0 auto;
	text-align: center;
	margin-top: 80%;
}

#main-menu li:hover {
	background: linear-gradient(45deg, #12c2e9, #c471ed, #f64f59, #12c2e9);
	-webkit-background-clip: text;
	color: transparent;
	animation: moveLiBg 1s linear infinite;
}

@keyframes moveLiBg {
	from {
		background-position: 0 0;
	}

	to {
		background-position: 180px 0;
	}
}


.page2 {
	overflow: hidden;
}

.page2 #bg {
	height: 100%;
	width: 100%;
	position: absolute;
	transform: translate3d(0px, -100%, 0px);
}

.page2 #bg li {
	height: 100%;
	width: 100%;
	background: url(../img/background.png);
	background-size: 100%;
}

.page2 #canvas {
	height: 100%;
	width: 100%;
	position: absolute;
}

.page2 #control {
	height: 100%;
	width: 100%;
	position: absolute;
}

.page2 #stop {
	top: 10px;
	left: 6px;
	position: absolute;
}

#stop img {
	height: 30px;
	width: 38px;
}

.page2 .blood-bar {
	height: 16px;
	width: 120px;
	position: absolute;
	right: 10px;
	top: 10px;
	border-radius: 4px;
	border: 2px solid #555555;
	transition: background-position-x 1.2s ease-in-out;
	background-image: repeating-linear-gradient(90deg,#AAFFA9,#11FFBD 120px);
	background-repeat: no-repeat;
	background-position-x: 0px;
	line-height: 16px;
}

.page2 .blood-bar::before,
.page2 .blood-bar::after {
	display: block;
	position: absolute;
	top: 1px;
	height: 16px;
	font-family: 'flintstone';
	font-size: 12px;
	transition: opacity 2s 0.6s;
}

.page2 .blood-bar::before{
	content: attr(data-percent);
	right: 28px;
}

.page2 .blood-bar::after {
	content: attr(data-skill);
	right: 5px;
}

.page2 .score,
.page2 .game-timer {
	height: 24px;
	font-size: 14px;
	font-family: 'flintstone';
	letter-spacing: 2.5px;
	line-height: 24px;
	position: absolute;
}

.page2 .game-timer {
	width: 90px;
	right: 10px;
	top: 32px;
	display: flex;
	justify-content: space-between;
	text-align: center;
}

.page2 .game-timer li {
	width: 25px;
}

.page2 .score {
	max-width: 80px;
	right: 10px;
	top: 50px;
}

.page3 {
	background: rgba(85, 85, 85, .5);
}

#sub-menu {
	overflow: hidden;
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate3d(-50%, -50%, 0);
}

#sub-menu li {
	background: #c3c8c9;
}

#sub-menu li:nth-child(1) {
	margin-top: 0;
}

.page4 {
	background: rgba(85, 85, 85, .5);
}

.goal {
	height: 280px;
	width: 280px;
	position: relative;
	margin: 0 auto;
	top: 50%;
	transform: translateY(-50%);
	background: #d8dcdf;
	border-radius: 8px;
	border: 2px solid #555555;
	text-align: center;
	color: #555555;
}

.goal h3 {
	height: 40px;
	line-height: 40px;
	font-size: 24px;
	letter-spacing: 2px;
}

.goal .score {
	height: 180px;
	width: 100%;
	border-bottom: 2px solid #555555;
	border-top: 2px solid #555555;
	font-size: 32px;
	font-family: 'flintstone';
	letter-spacing: 2px;
	line-height: 180px;
}

.goal .continue {
	height: 30px;
	width: 120px;
	margin: 0 auto;
	margin-top: 11px;
	border-radius: 30px;
	border: 2px solid #555555;
	line-height: 30px;
	font-size: 18px;
	font-weight: bold;
	background: #c4c9ca;
}
